package com.openxt.nbzj.event;

/**
 * 事件对象
 * @author zhaoyj
 *
 */
public class Event {
	/** 发生事件的行为 */
	private String type;
	/** 事件产生的对象 */
	private Object target;
	/** 事件的参数 */
	private Object arg;

	public Event(String type){
		this.type = type;
	}
	public Event(String type, Object target, Object arg){
		this.type = type;
		this.target = target;
		this.arg    = arg;
	}
	public String getType() {
		return type;
	}
	public void setType(String action) {
		this.type = action;
	}
	public Object getArg() {
		return arg;
	}
	public void setArg(Object arg) {
		this.arg = arg;
	}
	public Object getTarget() {
		return target;
	}
	public void setTarget(Object target) {
		this.target = target;
	}
}
